import request from '@/utils/request'

/* 列表分页*/
export function selectMoldPage(data) {
  return request({
    url: '/erp/mold/selectMoldPage',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function saveMold(data) {
  return request({
    url: '/erp/mold/saveMold',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function updateMoldById(data) {
  return request({
    url: '/erp/mold/updateMoldById',
    method: 'post',
    data: data
  })
}

/* 根据id查询*/
export function selectMoldById(data) {
  return request({
    url: '/erp/mold/selectMoldById/' + data,
    method: 'post'
  })
}

/* 根据名称查询*/
export function selectMoldByName(data) {
  return request({
    url: '/erp/mold/selectMoldByName',
    method: 'post',
    data: data
  })
}

/* 删除*/
export function deleteMold(data) {
  return request({
    url: '/erp/mold/deleteMold',
    method: 'post',
    data: data
  })
}

/* 导出*/
export function exportMold(data) {
  return request({
    url: '/erp/mold/export',
    method: 'post',
    params: data
  })
}
